package com.rc.evcharger.service.rc;

import com.rc.evcharger.common.base.BaseService;
import com.rc.evcharger.mapper.rc.RcMemberGainSettingRecordMapper;
import com.rc.evcharger.model.member.MemberAccount;
import com.rc.evcharger.model.order.OrderDiscountRecord;
import com.rc.evcharger.model.order.OrderInfo;
import com.rc.evcharger.model.rc.RcMemberGainSettingRecord;
import com.rc.evcharger.model.rc.RcMemberGainSettingRecordExample;
import com.rc.evcharger.vo.cost.UserLevelPriceResult;

/**
 * @Author: yang
 * @Date: 2022/7/5 22:39
 */
public interface RcMemberGainSettingRecordService extends BaseService<Long, RcMemberGainSettingRecord, RcMemberGainSettingRecordExample, RcMemberGainSettingRecordMapper> {

    UserLevelPriceResult updateOrderInfo(OrderInfo orderInfo);

    OrderDiscountRecord updateOrderInfoByGiveAmount(OrderInfo orderInfo, MemberAccount memberAccount);

    int updateGiveAccount(OrderInfo orderInfo, MemberAccount memberAccount);
}
